const {
	$USetCache,
	$UGetCache,
} = require('./storage')
module.exports = {

	// /leangoo/list
	getItemList() {
		return new Promise((resolve, reject) => {
			$.post('/leangoo/list', function(result) {
				// $USetCache('leangoo-blocks', result.blocks)
				resolve(result)
			})
		})
	},

	// 
	addTaskItem(params) {
		return new Promise((resolve, reject) => {
			$.post('/leangoo/addItem', params, function(result) {
				resolve(result)
			})
		})
	},
}